package chapter05;

public class Circle {
    private double r;

    public Circle(){
        this.r = 1;
    }
    public double getR (){
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }
    public double mianji(){
        return 3.14*r*r;
    }
}
